package br.mikhas.container.annotation.context;

import org.junit.Ignore;

import br.mikhas.container.annotation.Resource;
import br.mikhas.container.config.InitializingBean;

@Ignore
@Resource
public class InitializableOne implements InitializingBean {
	@Resource
	private A a;
	@Resource
	private B b;
	@Resource
	private C c;

	private boolean initialized = false;

	@Override
	public void initialize() {
		initialized = true;
	}

	public boolean okay() {
		return this.initialized && a != null && b != null && c != null;
	}
}
